package com.tenebrous.jestic.mapper.idao.framwork.system;

import com.tenebrous.jestic.entity.framwork.system.SysParams;
import com.tenebrous.jestic.mapper.ISuperMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface SysParamsMapper extends ISuperMapper<SysParams> {

    @Select("SELECT * FROM SYS_PARAMS A WHERE A.USERID = #{userid} AND SKEY = #{skey}")
    SysParams selectParamsByUseridAndSkey(@Param("userid") String userid, @Param("skey") String skey);

    List<SysParams> selectByCondition(@Param("skey") String skey, @Param("userid") String userid);
}